/*
 * variables.c
 *
 *  Created on: 13/05/2010
 *      Author: teledhil
 */

#include <pthread.h>
#include "variablesGlobales.h"
#include "constantes.h"
#include "hilo.h"

bool debugMode = false;

char nick[BUFFER] = "";
char username[BUFFER] = "";
char realname[BUFFER] = "";

char channel[BUFFER] = "";
char channelDesired[BUFFER] = "";

char servidor[BUFFER] = "";
int puerto = 0;
int socketServer = 0;
int socketDownload = 0;
int socketUpload = 0;

/*Threads*/
pthread_t threadEscuchas;
bool threadEscuchasLanzado = false;
Hilo hiloUploads;
Hilo hiloDownloads;
Hilo hiloEscuchas;

/*Variables de estado*/
bool state_connected = false;
bool state_inChannel = false;
bool state_powerOff = false;
int state_sleep = 0;

/*Fichero descarga*/
char file_dl_path[BUFFER] = "";
int file_dl_fd = 0;
long file_dl_size = 0;

/*Fichero subida*/
char file_ul_path[BUFFER] = "";
int file_ul_fd = 0;
long file_ul_size = 0;
char file_ul_nick[BUFFER] = "";
